package com.lagou.rpc;

import com.lagou.rpc.boot.ServerBootStrap;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class RpcServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(RpcServerApplication.class, args);

        try {
            ServerBootStrap.startServer("127.0.0.1", 8080);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }

}
